{include file="common/header"}

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>操作日志</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="alert alert-warning">
                            <b>提示：</b>您在后台的任何操作都将被记录在此，以供开发人员维护参考，请谨慎操作
                        </div>
                        <div class="ibox-content timeline">
                            <?php foreach($res as $v): ?>
                            <div class="timeline-item">
                                <div class="row">
                                    <div class="col-xs-3 date" style="text-align: left;width: 170px;">
                                        <br>
                                        <i class="fa fa-file-text"></i>
                                        <b><?php echo $v['log_time']; ?></b>
                                        <br>
                                    </div>
                                    <div class="col-xs-7 content" style="width: 85%;">
                                        <p class="m-b-xs">
                                            <span><?php echo $v['type'] == 1 ? '<span style="color:green">登录</span>' : '<span style="color:red">操作</span>'; ?>
                                            </span>
                                        </p>
                                        <p style="height: 50px;overflow: auto;"><?php echo htmlspecialchars($v['action_content']); ?></p>
                                    </div>
                                </div>
                            </div>
                            <?php endforeach; ?>
                        </div>
                        <div class="b-page">
                            <?php echo $page['page']; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{include file="common/footer"}
